/* Styling for the floating button */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }

  .normal-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    width: max-content;
    height: min-content;
  }

  .simple-btn {
    /* background-color: #007bff; */
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    /* padding: 3px 6px; */
    /* border-radius: 4px; */
  }

  /* Styling for the modal overlay */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
  }

  /* Styling for the modal content */
  .modal-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    height: 90%;
    width: 90%;
  }

  .modal-panel {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    z-index: 3;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .table-header {
    /* 添加固定定位属性，使其固定在 <ul> 元素的顶部 */
    position: sticky;
    top: 0;
    background-color: #a0a0a0;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
  }

  select {
    width: min-content;
    height: 40px;
    font-size: x-large;
    font-weight: bold;
    border: none;
  }

  .flag-select {
    width: min-content;
    border: none;
    height: auto;
    font-size: small;
    font-weight: normal;
  }

  #sortable-list {
    flex: 1;
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    height: 100%;
    overflow-y: auto;
  }

  #ad-level-list {
    flex: 1;
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    height: 100%;
    overflow-y: auto;
  }

  #lib-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    width: max-content;
    height: calc(100% - 50px);
    overflow-y: auto;
  }

  #group-list {
    list-style-type:decimal;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    width: 100%;
    height: calc(100% - 20px);
    overflow-y: auto;
  }

  #group-level-list {
    list-style-type:decimal;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    width: 100%;
    height: 100%;
    max-height: calc(100% - 20px);
    overflow-y: auto;
  }

  .li-selected {
    background-color: #f9c7c8;
    border: solid red 1px !important;
  }

  li {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: grab;
    font-size: 16px;
    color: #333;
    background-color: #f2f2f2;
    position: relative;
  }

  .li-before li::before {
    content: attr(data-index);
    /* 使用 data-* 属性存储页数 */
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #4caf50;
    /* 设置图标背景色 */
    color: white;
    /* 设置图标文字颜色 */
    text-align: center;
    line-height: 20px;
    margin-right: 5px;
    border-radius: 50%;
    /* 将图标形状设置为圆形 */
    font-size: x-small;
  }

  .li-after li::after {
    content: attr(data-page-number);
    /* 使用 data-* 属性存储页数 */
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #cccccc;
    /* 设置图标背景色 */
    color: white;
    /* 设置图标文字颜色 */
    text-align: center;
    line-height: 20px;
    margin-right: 5px;
    border-radius: 10%;
    /* 将图标形状设置为圆形 */
    font-size: x-small;
    position: absolute;
    /* 设置图标的 position 属性为 absolute */
    right: 0;
    /* 将图标靠右对齐 */
  }

  .toast {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    display: none;
    z-index: 10;
  }

  .input-number {
    width: 70px;
  }
  .level-title {
    margin-left: 10px;
  }

  .tab_button {
    background-color: #818181;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    width: max-content;
    height: calc(min-content + 5px);
    border-bottom:  0;
  }

  .tab_left {
    border-radius: 5px 0 0 5px;
  }

  .tab_middle {
    border-radius: 0;
    border-left: 1px solid #FFF;
    border-right: 1px solid #FFF;
  }

  .tab_right {
    border-radius: 0 5px 5px 0;
  }

  .tab_button_select {
    background-color: #007bff;
    color: #fff;
    border-bottom:  5px solid #1071d8;
  }